home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 045a / setprint.zip / SETPRINT.DOC next >
Text File  |  1993-03-28  |  12KB  |  310 lines

  1.  
  2.  
  3.                         SetPrint Version 1.0
  4.                    Copyright 1993 by James Habel Jr.
  5.                         All rights reserved.
  6.  
  7. DISCLAIMER:
  8.  
  9.      Although every step has been made to ensure the correct and safe
  10. operation of the SETPRINT program the author assumes no liability for
  11. any direct or indirect damages caused by the SETPRINT program. If for
  12. some reason you do have problems with the program please feel free to
  13. contact the author at any of the places listed at the end of this file.
  14. Feel free to distribute this program anywhere you like. Just make sure
  15. you include both files. (SETPRINT.EXE and SETPRINT.DOC)
  16.  
  17.  
  18.  
  19.  
  20. PURPOSE of SETPRINT:
  21.  
  22.       To allow a user to have complete control over their printer(s) by
  23. use of an easy to use menu system which the user creates himself. To
  24. also allow the user to set up their printer with an easy to use command
  25. line structure that can be run during the computers boot-up process.
  26.  
  27. REQUIREMENTS:
  28.  
  29.       Any IBM or 100% compatible computer (8088,8086,80286,80386,80486).
  30.       MS-DOS Version 2.1 or higher.
  31.       Any printer which can be used with any of the above computers.
  32.       Your printer manual.
  33.       1 hour of your time to create the menus.
  34.  
  35.  
  36. FEES:
  37.  
  38.       SETPRINT is a copyrighted program and may not be modified in
  39. any way shape or form. The cost of using SETPRINT is entirely up to
  40. the user. If you only drop me a letter telling me what you think of
  41. the program I'll be a happy fellow. Of course if you send along a
  42. small donation I'll be an even happier fellow. If you have any
  43. comments or questions about the program I can be located at the
  44. following places:
  45.  
  46.       Residence:  James P. Habel Jr.
  47.                   645 West Vine St.
  48.                   Lancaster, PA 17603
  49.                   717-291-4637
  50.  
  51.       Prodigy  :  HGVR05A
  52.       Delphi   :  JHABEL
  53.  
  54.  
  55.  
  56.  
  57.  
  58. INSTALLATION:
  59.  
  60.  
  61.       SETPRINT can be installed in any directory you wish. Simply copy
  62. the file SETPRIN.EXE to the directory of your choice and type the
  63. following at the command prompt:  SETPRIN  <ENTER>
  64.  
  65.       Once the file decompresses simply type SETPRINT  <ENTER> to start
  66. the program.
  67.  
  68.  
  69.  
  70. BUILDING MENUS:
  71.  
  72.       Once you start the program you will see a menu on the screen that
  73. prompts you to Create a New File. Press ENTER.
  74.       Type in the name that you wish to assign to the file you will be
  75. creating. The name you choose should reflect the type of printer that
  76. you will be creating the file for. For example if you are creating a
  77. file for a HP DeskJet 500, a good file name would be HPDJ500.PRI. You
  78. can't enter the .PRI extension as it will be added by the program when
  79. you save the file to disk. After entering your file name press ENTER.
  80.       The next step is creating the menus. There are 8 different menus
  81. that you can create. Use only one or use all eight it doesn't matter.
  82. Select SETUP from the main title bar and you will see a new menu drop
  83. down that will enable you to set up each individual menu. Select the
  84. first option from the menu by pressing ENTER when the cursor is located
  85. over the selection or by pressing the highlighted letter or number at
  86. the beginning of the option.
  87.  
  88.                         < DATA ENTRY SCREEN >
  89.  
  90.       The data entry screen (DES) is where you enter information for
  91. all the menus you wish to create. There are 3 main pieces of data that
  92. can be entered on this screen. They are:
  93.  
  94.    1. Menu Name   - This is the name that you assign to the particular
  95.                   menu that you are working on. You can use up to 6
  96.                   characters in the name for each of the 8 menus.
  97.                   The name you enter here will be displayed on the
  98.                   main title bar and can be highlighted to allow the
  99.                   use of that menu. Each menu is also assigned a num-
  100.                   ber from 1 to 8 that will appear above each menu
  101.                   name. These numbers will be used when running SETPRINT
  102.                   from the command line and will be explained later.
  103.  
  104.    2. Option Name - Each menu can have from 1 to 15 options listed on
  105.                   it. The name you assign to each option will appear
  106.                   on the pull-down menus from the main title bar. Each
  107.                   option will be preceded by a letter from A to O. These
  108.                   letters can be used to select an option from a menu by
  109.                   simply pressing the letter for the option you wish to
  110.                   use. The letters (A-O) will also be used when running
  111.                   SETPRINT from the command line.
  112.  
  113.    3. Control Codes - After the field for each option name you will find
  114.                   8 spaces that are to be used for entering the decimal
  115.                   control codes for each particular option. For this you
  116.                   will need your printer manual. The control codes will
  117.                   usually be found near the back of the book.
  118.  
  119.        When you are done entering a name for the menu, all the option
  120. names and all the printer codes for each option press F3 to save the
  121. data to disk. Press ESC to abort a menu without saving any changes.
  122.        Below I'll go thru all the steps for building a menu.
  123.  
  124.        We have selected the first option on the SETUP menu (SetUp Menu
  125. #1) and we are now looking at the data entry screen. At the top of the
  126. screen it tells us what menu we are working on in case we forget. The
  127. first thing we have to do is give our menu a name. Let's call our menu
  128. PRINT. Type PRINT in the field where it asks for the menu title and
  129. press ENTER. Now we have to enter the names for all our options plus
  130. enter each options control codes. We'll do some simple ones first.
  131. below are the first three options that we want to appear on our PRINT
  132. menu and what the screen will look like when we are done.
  133.  
  134. -----------------------------------------------------------------------
  135. MENU TITLE: Print
  136.  
  137. Menu #1          OPTION TITLE                        CODES
  138. Menu Item# A  Carriage Return           13   0   0   0   0   0   0   0
  139. Menu Item# B  Linefeed                  10   0   0   0   0   0   0   0
  140. Menu Item# C  Form Feed                 12   0   0   0   0   0   0   0
  141.  
  142.  
  143.  
  144. -----------------------------------------------------------------------
  145.    Now you may be wondering where we got the decimal numbers to enter
  146. in the code fields. We found them in the back of our printer manual
  147. where they are usually located. Remember to enter the decimal codes and
  148. not the hexa-decimal codes which are usually located there as well.
  149. We only entered 3 options here but we could have entered up to 15. When
  150. this menu is full we simply save the menu by pressing F3 and then start
  151. working on the next menu.
  152.  
  153.     To save you trouble later I'll now list some helpful tips to save
  154. you time and dispair. Please read these tips before you begin working
  155. on your own menus.
  156.  
  157.    1. Each menu you create MUST have a different name and MUST begin
  158.       with a unique letter. The reason for this is that the first
  159.       letter in the menu name can be used to select that menu from
  160.       the main title bar.
  161.  
  162.    2. Use as many menus that you need (up to 8). If you don't plan on
  163.       using all 8 menus it is a good idea to start with menu #1 and
  164.       work to your right.
  165.  
  166.    3. When assigning a name to a menu use a name that will represent
  167.       what the menu actually contains. For example name a menu FONTS
  168.       if all the options on that menu will be used to change the
  169.       fonts that your printer will use.
  170.  
  171.    4. If you have certain options that must be used in a certain order
  172.       then enter them in the order that they will be used. You will
  173.       see why this can save you time when we explain the command line
  174.       options later.
  175.  
  176.    5. Each menu can contain up to 15 options. You may use all 15 or just
  177.       one, it doesn't matter. So the total number of command options
  178.       that can be entered with this program is 120 (8 menus * 15 options)
  179.  
  180.    6. You may find it useful to combine 2 or more options on the same
  181.       line. For example the above example could have been combined on
  182.       the same line as:
  183.  
  184.  
  185. Menu Item# A  CR+LF+FF                  13   10   12   0   0   0   0   0
  186.  
  187.  
  188.    7. Enter the name or brand of your printer under menu #8,
  189.       option O to have it appear in the upper right hand corner
  190.       of the screen.
  191.  
  192.  
  193.    8. MAKE SURE THAT ALL UNUSED CONTROL CODE FIELDS ARE SET TO ZERO !
  194.  
  195.  
  196.  
  197.    To use the menus once they are created simply make sure your printer
  198. is on-line, select the menu you want then select the option you want.
  199. The control codes that you entered for the selected option will be sent
  200. to your printer thru LPT1 or LPT2.
  201.  
  202.  
  203.  
  204. OTHER SETUP MENU OPTIONS
  205.  
  206.   View PRINT.USE  - Select this option to view all your most recent
  207.                     selections. Every time you select an option from
  208.                     a menu it will be appended to a file called
  209.                     PRINT.USE. This option simply opens this file and
  210.                     displays it's contents to the screen.
  211.  
  212.   Delete PRINT.USE- This option will delete the file PRINT.USE. Use
  213.                     this option occasionally to keep the length of
  214.                     the PRINT.USE file from getting to large.
  215.  
  216.   Change Directory- This option will allow you to change directories.
  217.                     Since each directory can only contain up to 10
  218.                     different printer files this option will be useful
  219.                     for those of you with more than 10 printers.
  220.                     (Yea right)
  221.  
  222.   Select File     - Use this option to load a different printer file
  223.                     into the program.
  224.  
  225.   Printer Port    - Each time you select this option the program will
  226.                     switch between LPT1 and LPT2 for printer output.
  227.                     The current port being used will be displayed at
  228.                     the bottom of the screen.
  229.  
  230.   Print Alphabet  - This option will print all the lower case and upper
  231.                     case letters to your printer. Useful to see which
  232.                     font or type face you like best.
  233.  
  234.   Quit to DOS     - Select this option when you wish to exit the
  235.                     SETPRINT program.
  236.  
  237.  
  238.  
  239. COMMAND LINE OPTIONS
  240.  
  241.     Perhaps the most useful purpose of SETPRINT is to setup your printer
  242. the way you like every time you boot your computer. This is what the
  243. command line options are used for. The command line options use a very
  244. strict format as follows:
  245.  
  246.   SETPRINT [Full path to printer file] [Menu options .....]
  247.  
  248.  
  249.    Here is an example of how to use the command line options. Say that
  250. we already created a file for our printer and set up all the menus. We
  251. saved the file to disk as MYPRINT.PRI. We want to have the printer to
  252. be ready to print in Near Letter Quality every time we boot the
  253. computer. We know that we entered the command to turn on NLQ on menu #1
  254. and under option B. We also know that MYPRINT.PRI is located in a
  255. directory named \DOS as is our SETPRINT.EXE program. So to have the
  256. printer get ready to print in NLQ when we boot the computer we add the
  257. following line to our AUTOEXEC.BAT file:
  258.  
  259.  
  260.  
  261. C:\DOS\SETPRINT C:\DOS\MYPRINT.PRI 1B
  262.  
  263.  
  264.    Remember our example earlier with the carriage return, linefeed and
  265. form feed. Say we want to execute all three commands from the command
  266. line. The correct line to type would be:
  267.  
  268. C:\DOS\SETPRINT C:\DOS\MYPRINT.PRI 1A 1B 1C
  269.  
  270.                   -or-
  271.  
  272. C:\DOS\SETPRINT C:\DOS\MYPRINT.PRI 1A-C
  273.  
  274.    In the second example the dash is used to execute consecutive items.
  275.  
  276.  
  277.   Note that if we were already in the \DOS directory we would only
  278. have to type the following:
  279.  
  280. SETPRINT MYPRINT.PRI 1A-C
  281.  
  282.    Use the command line option in your AUTOEXEC.BAT file only if you
  283. want to setup the printer every time your computer boots.
  284.    You can also use SETPRINT within other programs as long as the
  285. program you are using allows you to shell out to dos.
  286.    The command line option is also useful when used in a batch file
  287. to setup your printer different ways for different programs.
  288.  
  289.    Thank you for trying SETPRINT !
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.